package com.vn.rainbow.exoalarm.db.settings;

import com.vn.rainbow.exoalarm.db.provider.AlarmProvider;
import com.vn.rainbow.exoalarm.db.table.AlarmSettingTable;

import android.net.Uri;
import android.provider.BaseColumns;
import android.provider.SyncStateContract.Constants;

public class AlarmSettingColums implements BaseColumns {

	public static final String ACTIVE_ALARM = "ACTIVE_ALARM";

	public static final Uri CONTENT_URI = Uri.parse("content://"
			+ AlarmProvider.AUTHORITY + "/"
			+ AlarmSettingTable.TABLE_NAME + "?"
			+ AlarmProvider.PARAMETER_NOTIFY + "=true");

	public static final Uri CONTENT_URI_NO_NOTIFICATION = Uri
			.parse("content://" + AlarmProvider.AUTHORITY + "/"
					+ AlarmSettingTable.TABLE_NAME + "?"
					+ AlarmProvider.PARAMETER_NOTIFY + "=false");

	public static Uri getContentUri(long id, boolean notify) {
		return Uri.parse("content://" + AlarmProvider.AUTHORITY + "/"
				+ AlarmProvider.PARAMETER_NOTIFY + "/" + id + "?"
				+ AlarmProvider.PARAMETER_NOTIFY + "=" + notify);
	}

}
